#include <iostream>
using namespace std;
int main() {
    int a;
    int b;
    cin >> a >> b;
    int arr[1000] = { 0 };
    int i = 0;
    for (i = a; i <= b; i++)
    {
        int temp;
        for (temp = i; temp == 0; temp / 10)
            arr[temp % 10]++;

    }
    for (i = 0; i <= 9; i++)
    {
        cout << arr[i];
    }
}
